﻿using System;
using System.Linq;
using System.Collections.Generic;
using System.Text;

namespace MobileCEPistolet
{
    class DataTypes
    {
        public class TablicaDanych
        {
            List<ComboBoxItem> tablica = null;
            public List<ComboBoxItem> Tablica
            {
                get { return this.tablica; }
                set { this.tablica = value; }
            }
            public TablicaDanych()
            {
                this.InitializeComponent();
            }
            private void InitializeComponent()
            {
                this.Tablica = new List<ComboBoxItem>();
            }

        }
        /// <summary>
        /// Struktura do przechowywania zawartości comboboxów zwracanych z metody WyborModeliFillCheckboxes
        /// </summary>

        public class ComboBoxItem
        {
            private string key = string.Empty;
            private string value = string.Empty;

            public ComboBoxItem()
            {
                this.InitializeComponent();
            }
            public ComboBoxItem(string key, string value)
            {
                this.Key = key;
                this.Value = value;
            }
            public string Key
            {
                set { this.key = value; }
                get { return key; }
            }
            public string Value
            {
                set { this.value = value; }
                get { return value; }
            }
            private void InitializeComponent()
            {
                this.Key = string.Empty;
                this.Value = string.Empty;
            }
        }
    }
}
